﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OperatorOverLoad
{
    class Student
    {
        private int age;
        
        /// <summary>
        /// 学生的年龄
        /// </summary>
        public int Age
        {
            get
            {
                return this.age;
            }
            set
            {
                this.age = value;
            }
        }

        public static int operator -(Student s1, Student s2)
        {
            return s1.age - s2.age;
        }

        ~Student()
        { 
            
        }
    }
}
